import request from '@/utils/request'

// 查询付款申请列表
export function listPurchaesPayment(query) {
  return request({
    url: '/oa/purchaesPayment/list',
    method: 'get',
    params: query
  })
}

// 查询付款申请详细
export function getPurchaesPayment(id) {
  return request({
    url: '/oa/purchaesPayment/' + id,
    method: 'get'
  })
}

// 新增付款申请
export function addPurchaesPayment(data) {
  return request({
    url: '/oa/purchaesPayment',
    method: 'post',
    data: data
  })
}

// 修改付款申请
export function updatePurchaesPayment(data) {
  return request({
    url: '/oa/purchaesPayment',
    method: 'put',
    data: data
  })
}

// 删除付款申请
export function delPurchaesPayment(id) {
  return request({
    url: '/oa/purchaesPayment/' + id,
    method: 'delete'
  })
}

// 获取没有付款申请的项目信息
export function getProjectList() {
  return request({
    url: '/oa/purchaesPayment/getProjectList',
    method: 'get'
  })
}

// 通过项目名称查询盖章申请
export function queryPurchaesPaymentByProjectName(data) {
  return request({
    url: '/oa/purchaesPayment/queryByProjectName',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data,
  })
}

